package com.yc.ycrpc.codec;

import com.alibaba.fastjson.JSON;


/**
 * 反序列对象
 * @author yc112
 */
public class JSONDecoder implements Decoder{
    @Override
    public <T> T decode(byte[] bytes, Class<T> clazz) {
        return JSON.parseObject(bytes, clazz);
    }
}
